package cn.tedu.medicalpath.medicine.mapper;

import cn.tedu.medicalpath.medicine.pojo.dto.MedicineQuery;
import cn.tedu.medicalpath.medicine.pojo.vo.MedicineVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author WangPeiao
 * @date 2024/12/12\
 * @apiNote
 */
@Repository
public interface MedicineMapper {

    List<MedicineVO> selectMedicine(MedicineQuery medicineQuery);

    Integer selectMedicineCount(MedicineQuery medicineQuery);

    MedicineVO selectMedicinePrice(Long medicineId);

    void updateMedicineAmount(@Param("id") Long id, @Param("amount") Integer amount);

    MedicineVO selectById(Long id);
}
